package Facade

//.此处定义的基础方法 只是提供给worker服务反射用
//
//func (facade *facadeAccessor) Bind(data wspl.Protocol,wsManager *gateway.WebsocketManager) {
//	facade.WsEvents.Bind(data.Uid,data.Session,wsManager)
//}
//
//func (facade *facadeAccessor) UnBind(data wspl.Protocol,wsManager *gateway.WebsocketManager) {
//	facade.WsEvents.UnBind(data.Uid)
//}
//
//func (facade *facadeAccessor) OnClose(data wspl.Protocol,wsManager *gateway.WebsocketManager) {
//	facade.WsEvents.CloseSocketByUid(data.Uid)
//}
//
//func (facade *facadeAccessor) JoinGroup(data wspl.Protocol,wsManager *gateway.WebsocketManager) {
//	facade.WsEvents.JoinGroup(data.Uid, data.Group)
//}
//
//func (facade *facadeAccessor) SendToGroup(data wspl.Protocol,wsManager *gateway.WebsocketManager) {
//	facade.WsEvents.SendToGroup(data.Group, data.Body)
//}
//
//func (facade *facadeAccessor) LeaveGroup(data wspl.Protocol,wsManager *gateway.WebsocketManager) {
//	facade.WsEvents.LeaveGroup(data.Uid, data.Group)
//}
//
//func (facade *facadeAccessor) SendToUid(data wspl.Protocol,wsManager *gateway.WebsocketManager) {
//	facade.WsEvents.SendToUid(data.Uid, data.Body)
//}
//
//func (facade *facadeAccessor) SendToUidlist(data wspl.Protocol,wsManager *gateway.WebsocketManager) {
//	facade.WsEvents.SendToUidlist(data.Uidlist, data.Body)
//}
//
////func (facade *facadeAccessor) IsOnline(data wspl.Protocol,wsManager *gateway.WebsocketManager) {
////	bufJson := facade.WsEvents.IsOnline(data.Uid)
////	wsManager..Write([]byte(bufJson))
////}
//
//func (facade *facadeAccessor) SendToAll(data wspl.Protocol,wsManager *gateway.WebsocketManager) {
//	facade.WsEvents.SendToAll(data.Body)
//}
